<div id="content">
  <div class="row s_page_title">
    <sa-big-breadcrumbs
      [items]="['安装管理[环卫]', '设备维修记录', '维修明细']"
      icon="fa fa-newspaper-o"
      class="col-xs-12 col-sm-7 col-md-7 col-lg-4"
    ></sa-big-breadcrumbs>
  </div>

  <sa-widgets-grid>
    <div class="s_table">
      <div sa-widget [editbutton]="false" color="darken" class="clearfix">
        <header>
          <span class="widget-icon"><i class="fa fa-table"></i></span>
          <h2>维修明细</h2>
        </header>
        <div>
          <div class="widget-body no-padding">
            <div class="page-header clearfix s_table_opreation">
              <div class="right">
                <button class="btn btn-link" (click)="goBack()">>>返回维修记录</button>
              </div>
            </div>
            <div class="table_scroll">
              <table
                class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table"
              >
                <thead>
                  <tr>
                    <th>公司名称</th>
                    <th>车牌号码</th>
                    <th>设备ID</th>
                    <th>车型</th>
                    <th>维修项目</th>
										<th>故障类型</th>
                    <th>维修创建时间</th>
                    <th>维修完成时间</th>
                    <th>维修人员</th>
                    <th>操作</th>
                  </tr>
                </thead>
                <tbody>
                  <tr *ngFor="let row of tableData; let i = index" [attr.data-index]="i">
                    <td>{{ row.companyName }}</td>
                    <td>{{ row.carNumber }}</td>
                    <td>{{ row.deviceId }}</td>
                    <td>{{ row.useTypeL2 }}</td>
                    <td>{{ row.title }}</td>
										<td>{{ row.subFaultTypeList && row.subFaultTypeList.join(',')}}</td>
                    <td>{{ row.createTime }}</td>
                    <td>{{ row.finishedTime }}</td>
                    <td>{{ row.operator }}</td>
                    <td>
                      <button type="button" (click)="repaireDetail(row)">详细</button>
                      <!--<button type="button" (click)="editRow(row)">编辑</button>-->
                      <button type="button" (click)="deleteRow(row)">删除</button>
                    </td>
                  </tr>
                </tbody>
              </table>
            </div>
            <div style="height: 60px; line-height: 60px; text-align: center; color: #ccc">
              <span *ngIf="tableData.length > 0">共{{ tableData.length }}条数据</span>
              <span *ngIf="tableData.length == 0">暂无数据</span>
            </div>
          </div>
        </div>
      </div>
    </div>
  </sa-widgets-grid>
</div>
